//
//  LoginView.m
//  Comma
//
//  Created by dlios on 15-1-13.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "LoginView.h"

@implementation LoginView

/*
 // Only override drawRect: if you perform custom drawing.
 // An empty implementation adversely affects performance during animation.
 - (void)drawRect:(CGRect)rect {
 // Drawing code
 }
 */

- (void)changeControlType
{
    // 设置视图的大小
    self.frame = CGRectMake(0, 312, SCREEN_WIDTH, SCREEN_HEIGHT - 312);
    // 设置忘记密码Button的frame
    self.centerButton.frame = CGRectMake(SCREEN_WIDTH - 80 + SCREEN_WIDTH, 88, 65, 44);
    // 修改输入手机号Field的长度
    self.upTextField.frame = CGRectMake(16 + SCREEN_WIDTH, 44, SCREEN_WIDTH - 110, 44);
    // 修改输入密码Field的长度
    self.centerTextField.frame = CGRectMake(16 + SCREEN_WIDTH, 88, SCREEN_WIDTH - 110, 44);
    self.centerTextField.secureTextEntry = YES;
    
    [self createLine];
}

- (void)createLine
{
    self.lineView = [[UIView alloc] initWithFrame:CGRectMake(SCREEN_WIDTH, 88, SCREEN_WIDTH, 0.5)];
    _lineView.backgroundColor = LINEERGRAY;
    [self addSubview:_lineView];
}



@end
